//
//  ChapterExtension.h
//  VNBooks
//
//  Created by hainguyen on 12/17/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Chapter.h"

@interface Chapter(Extension)

+ (BOOL)init;
+ (NSArray*)getChapters;
+ (Chapter*)getChapter:(int)chapterId;
+ (NSArray*)searchChapterName:(NSString*)keyword;
+ (NSArray*)searchContent:(NSString*)keyword;
+ (BOOL)setFavoriteForChapter:(Chapter*)chapter favorite:(BOOL)yn;
+ (BOOL)updateFavoriteStatus:(int)chapterId favorite:(BOOL)yn;

@end
